ToOoOlTiPs: An R Package for Customizable Tooltips in Interactive Graphics

Abstract:

An abstract of less than 150 words.

Cite PDF Tweet
Quietest Quokka https://www.britannica.com/animal/quokka (University of Little Mates) , Bounciest Bilby https://www.britannica.com/animal/bilby (University of Little Mates)
2021-08-04

Introduction

Interactive graphics is a type of visualization that allows users to interactively inspect a plot. One of the most basic interactivity is through tooltips, where users can request additional information about a plot element by mouse hovering …

This paper will first review some R packages on interactive graphics and their tooltip implementations. Next, a new package will be proposed for customizing tooltips. Some gallery plots will then be given to showcase how these tooltips help users to better read the graphics.

Literacture review

Some packages on interactive graphics include (Sievert 2020) that interfaces with Javascript for web-based interactive graphics, (Cheng and Sievert 2021) that specializes cross-linking elements across individual graphics, and most recently, (Wang and Cook 2021) for working with time series data in a tsibble structure …

Customizing tooltip design with

is a packages for customizing tooltips in interactive graphics, it features …

A gallery of tooltips

We first show a baseline plot, in Figure , made by the package with data (Horst, Hill, and Gorman 2020).

p <- penguins %>% 
  ggplot(aes(x = bill_depth_mm, y = bill_length_mm, 
             color = species)) + 
  geom_point()
ggplotly(p)

Figure 1: A basic interactive plot made with the plotly package on palmer penguin data. Three species of penguins are plotted with bill depth on the x-axis and bill length on the y-axis. When hovering on a point, a tooltip will show the exact value of the bill depth and length for that point, along with the species name.

Now we will re-create the same plot using the package for different tooltips designs …

Summary

We have displayed various tooltips that are available in the package . These tooltips …

Cheng, Joe, and Carson Sievert. 2021. Crosstalk: Inter-Widget Interactivity for HTML Widgets. https://CRAN.R-project.org/package=crosstalk.
Horst, Allison Marie, Alison Presmanes Hill, and Kristen B Gorman. 2020. Palmerpenguins: Palmer Archipelago (Antarctica) Penguin Data. https://allisonhorst.github.io/palmerpenguins/.
Sievert, Carson. 2020. Interactive Web-Based Data Visualization with r, Plotly, and Shiny. Chapman; Hall/CRC. https://plotly-r.com.
Wang, Earo, and Dianne Cook. 2021. Conversations in time: interactive visualisation to explore structured temporal data.” The R Journal. https://doi.org/10.32614/RJ-2021-050.

References

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".